package cn.tansanqinger.dao.sql.admin;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import cn.tansanqinger.dao.sql.IAdminSqlDao;
import cn.tansanqinger.pojo.Admin;

@Repository
public class AdminSqlDaoImpl{
	
	@Autowired
	private IAdminSqlDao sqlDao;
	
	/**
	 * 通过aid查询相关的admin信息
	 * @param aid
	 * @return
	 */
	public Admin selectAid(String aid) {
		return sqlDao.selectById(aid);
	}
	
	/**
	 * 修改相关的around，将之清空
	 * @param admin
	 */
	public void updataAround(Admin admin) {
		sqlDao.updateById(admin);
	}
}
